package com.atgm.mall.gmmailmember.service;

import com.atgm.mall.gmmailmember.entity.MemberThumbsArticleEntity;
import com.atgm.mall.gmmailmember.vo.resp.ArticleThumbsRespVo;
import com.baomidou.mybatisplus.extension.service.IService;

public interface MemberThumbsArticleService extends IService<MemberThumbsArticleEntity> {

    /**
     * 点赞
     * @param memberId
     * @param articleId
     */
    void saveThumbsInfo(Long memberId, Long articleId);

    /**
     * 获取文章的点赞信息
     * @param articleId
     * @return
     */
    ArticleThumbsRespVo queryArticleThumbsByArticleId(Long articleId);

    /**
     * 判断用户是否点赞该文章
     * @param articleId
     * @param memberId
     * @return
     */
    Integer haveThumbsArticle(Long articleId, Long memberId);
}
